﻿<script type="text/javascript">
    editor = KindEditor.create($('#newsContent'), { 
                height: '230px', 
                width: '680px',
                uploadJson: 'scripts/kindeditor/asp.net/upload_json.ashx',
                fileManagerJson: 'scripts/kindeditor/asp.net/file_manager_json.ashx',
				allowFileManager : true });

    
</script>
<div>
    <form id="formAdd" action="NewsWebService.asmx/CreateNewsInfo" method="post">
    <fieldset>
        <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
        <p>
            <label>
                标题</label>
            <input class="text-input medium-input" type="text" id="newsName" name="NewsName" />
            <input type="hidden" id="hiddenCategoryCode" name="CategoryCode" />
            <input type="hidden" id="hiddenNewsCode" name="NewsCode" />
            <input type="hidden" id="hiddenNewContent" name="NewsContent" />
        </p>
        <p>
            <label>
                描述</label>
            <input class="text-input medium-input" type="text" id="newsDesc" name="NewsDesc" />
        </p>
        <p>
            <label>
                内容</label>
            <textarea id="newsContent"></textarea>
        </p>
        <input class="button" type="submit" value="保存" onclick="AddNews();" />
        <input class="button" type="button" onclick="FaceboxClose();" value="关闭" />
    </fieldset>
    </form>
</div>
